<?php

namespace app\api\controller;

use app\common\controller\Api;
use think\cache\driver\Redis;

/**
 * 首页接口
 */
class Index extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = [];

    /**
     * 首页
     *
     */
    public function index()
    {
        $redis = $this->getRedis();
        $data = $redis->keys('*');
        $this->ajaxSuccess($data);
    }
}
